// 内容管理
import Layout from '@/views/layout/Layout'
const adRouter = {
  path: '/ad',
  component: Layout,
  redirect: '/ad/list',
  name: 'Ad',
  meta: { title: '内容管理' },
  children: [
    {
      path: 'list',
      name: 'AdList',
      component: () => import('@/views/ad/list'),
      meta: { title: '广告推荐' }
    },
    {
      path: 'create',
      name: 'AdCreate',
      component: () => import('@/views/ad/form'),
      meta: { title: '添加广告推荐' },
      hidden: true
    },
    {
      path: 'edit/:id',
      name: 'AdEdit',
      component: () => import('@/views/ad/form'),
      meta: { title: '编辑广告推荐' },
      hidden: true
    },

    {
      path: 'type-list',
      name: 'AdTypeList',
      component: () => import('@/views/adType/list'),
      meta: { title: '推荐位' }
    },
    {
      path: 'type-create',
      name: 'AdTypeCreate',
      component: () => import('@/views/adType/form'),
      meta: { title: '添加推荐位' },
      hidden: true
    },
    {
      path: 'type-edit/:id',
      name: 'AdTypeEdit',
      component: () => import('@/views/adType/form'),
      meta: { title: '编辑推荐位' },
      hidden: true
    }
  ]
}
export default adRouter
